#pragma once
#ifndef TOUCHABLE_COMPONENT_H
#define TOUCHABLE_COMPONENT_H

#include "gamecomponent.h"
#include "LevelVolume.h"
class TouchableComponent :	public GameComponent
{
private:
	std::vector<GameComponent*>		possible_contacts;
	std::vector<GameComponent*>		actual_contacts;
	int								num_pos_contacts;
	float							radius;

	AlphaVector*					entity_position;

	bool							touching;


public:
	TouchableComponent(void);
	~TouchableComponent(void);

	void initMe(GameComponent* parent);
	bool isTouching(AlphaVector a, AlphaVector b);
	void updateMe(GameComponent* parent);

	AlphaVector* getPos() {return entity_position;}

};

#endif